package com.yaorange.service.impl;

import com.yaorange.entity.User;
import com.yaorange.mapper.UserMapper;
import com.yaorange.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @description:
 * @company: yaorange
 * @author: 啊啊啊林
 * @version: 1.0
 * @create: 2021-09-26 10:31:59
 */
@Service
@Transactional//事务
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;


    @Override
    public List<User> findAllUser() {
        return userMapper.selectAll();
    }
}
